{"version":3,"file":"client_selector.bundle.map.js","names":["this","BX","Seo","exports","main_core","main_loader","_templateObject","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","_unsupportedIterableToArray","length","i","F","s","n","done","value","e","_e","f","TypeError","normalCompletion","didErr","err","call","step","next","_e2","minLen","_arrayLikeToArray","Object","prototype","toString","slice","constructor","name","from","test","arr","len","arr2","ClientSelector","container","params","babelHelpers","classCallCheck","canAddItems","canUnSelectItem","onNewItemCallback","events","Type","isFunction","onNewItem","onSelectItemCallback","onSelectItem","onUnSelectItemCallback","onUnSelectItem","onRemoveItemCallback","onRemoveItem","init","setSelected","selected","setItems","items","enabled","loader","Loader","size","createClass","key","item","closeMenu","updateClientHtml","Dom","append","getHtml","Event","bind","onContainerClick","enable","selector","getSelectorNode","classList","remove","hide","disable","add","getElementsByClassName","show","Tag","render","taggedTemplateLiteral","Loc","getMessage","getMenuItemHtml","util","htmlspecialchars","NAME","html","PICTURE","CLIENT_ID","innerHTML","getRemoveConfirmPopupHtml","replace","userAvatar","userName","userLink","empty","hasOwnProperty","LINK","avatarNode","querySelector","nameNode","linkNode","style","backgroundImage","removeProperty","textContent","setAttribute","removeAttribute","_this","menuItems","_iterator","_step","push","className","onclick","delimiter","text","PopupMenu","offsetTop","offsetLeft","angle","onPopupClose","destroy","removeClientLinks","currentItem","popupWindow","getContentContainer","querySelectorAll","_iterator2","_step2","removeClientLink","event","stopPropagation","clientId","data","target","_iterator3","_step3","_item","confirmRemoveItem","_this2","confirmPopup","PopupWindow","content","autoHide","cacheable","closeIcon","closeByEsc","buttons","UI","Button","color","Color","DANGER","close","Ads"],"sources":["client_selector.bundle.js"],"mappings":"AAAAA,KAAKC,GAAKD,KAAKC,IAAM,CAAC,EACtBD,KAAKC,GAAGC,IAAMF,KAAKC,GAAGC,KAAO,CAAC,GAC7B,SAAUC,EAAQC,EAAUC,GAC5B,aAEA,IAAIC,EAAiBC,EAAk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